Optimal. Leaf size=79 \[ -\frac{\sqrt{2} \tanh ^{-1}\left (\frac{\sqrt{a} \sqrt{c-d} \cos (e+f x)}{\sqrt{2} \sqrt{a \sin (e+f x)+a} \sqrt{c+d \sin (e+f x)}}\right )}{\sqrt{a} f \sqrt{c-d}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.107281, antiderivative size = 79, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.069, Rules used = {2782, 208} \[ -\frac{\sqrt{2} \tanh ^{-1}\left (\frac{\sqrt{a} \sqrt{c-d} \cos (e+f x)}{\sqrt{2} \sqrt{a \sin (e+f x)+a} \sqrt{c+d \sin (e+f x)}}\right )}{\sqrt{a} f \sqrt{c-d}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2782
Rule 208
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{a+a \sin (e+f x)} \sqrt{c+d \sin (e+f x)}} \, dx &=-\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{2 a^2-(a c-a d) x^2} \, dx,x,\frac{a \cos (e+f x)}{\sqrt{a+a \sin (e+f x)} \sqrt{c+d \sin (e+f x)}}\right )}{f}\\ &=-\frac{\sqrt{2} \tanh ^{-1}\left (\frac{\sqrt{a} \sqrt{c-d} \cos (e+f x)}{\sqrt{2} \sqrt{a+a \sin (e+f x)} \sqrt{c+d \sin (e+f x)}}\right )}{\sqrt{a} \sqrt{c-d} f}\\ \end{align*}
Mathematica [B] time = 4.07253, size = 283, normalized size = 3.58 \[ \frac{\log \left (\tan \left (\frac{1}{2} (e+f x)\right )+1\right )-\log \left ((d-c) \tan \left (\frac{1}{2} (e+f x)\right )+2 \sqrt{c-d} \sqrt{\frac{1}{\cos (e+f x)+1}} \sqrt{c+d \sin (e+f x)}+c-d\right )}{f \sqrt{a (\sin (e+f x)+1)} \sqrt{c+d \sin (e+f x)} \left (\frac{\sec ^2\left (\frac{1}{2} (e+f x)\right )}{2 \tan \left (\frac{1}{2} (e+f x)\right )+2}-\frac{\frac{\sqrt{c-d} \left (\frac{1}{\cos (e+f x)+1}\right )^{3/2} (c \sin (e+f x)+d \cos (e+f x)+d)}{\sqrt{c+d \sin (e+f x)}}-\frac{1}{2} (c-d) \sec ^2\left (\frac{1}{2} (e+f x)\right )}{(d-c) \tan \left (\frac{1}{2} (e+f x)\right )+2 \sqrt{c-d} \sqrt{\frac{1}{\cos (e+f x)+1}} \sqrt{c+d \sin (e+f x)}+c-d}\right )} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.139, size = 191, normalized size = 2.4 \begin{align*} -{\frac{ \left ( 1-\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) \right ) \sqrt{2}}{f\sin \left ( fx+e \right ) }\sqrt{c+d\sin \left ( fx+e \right ) }\ln \left ( 2\,{\frac{1}{1-\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) } \left ( \sqrt{2\,c-2\,d}\sqrt{2}\sqrt{{\frac{c+d\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) +1}}}\sin \left ( fx+e \right ) +c\sin \left ( fx+e \right ) -d\sin \left ( fx+e \right ) +c\cos \left ( fx+e \right ) -d\cos \left ( fx+e \right ) -c+d \right ) } \right ){\frac{1}{\sqrt{2\,c-2\,d}}}{\frac{1}{\sqrt{a \left ( 1+\sin \left ( fx+e \right ) \right ) }}}{\frac{1}{\sqrt{{\frac{c+d\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) +1}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{a \sin \left (f x + e\right ) + a} \sqrt{d \sin \left (f x + e\right ) + c}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.59621, size = 1199, normalized size = 15.18 \begin{align*} \left [\frac{\sqrt{2} \log \left (\frac{{\left (c^{2} - 14 \, c d + 17 \, d^{2}\right )} \cos \left (f x + e\right )^{3} -{\left (13 \, c^{2} - 22 \, c d - 3 \, d^{2}\right )} \cos \left (f x + e\right )^{2} - \frac{4 \, \sqrt{2}{\left ({\left (c^{2} - 4 \, c d + 3 \, d^{2}\right )} \cos \left (f x + e\right )^{2} - 4 \, c^{2} + 8 \, c d - 4 \, d^{2} -{\left (3 \, c^{2} - 4 \, c d + d^{2}\right )} \cos \left (f x + e\right ) +{\left (4 \, c^{2} - 8 \, c d + 4 \, d^{2} +{\left (c^{2} - 4 \, c d + 3 \, d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt{a \sin \left (f x + e\right ) + a} \sqrt{d \sin \left (f x + e\right ) + c}}{\sqrt{a c - a d}} - 4 \, c^{2} - 8 \, c d - 4 \, d^{2} - 2 \,{\left (9 \, c^{2} - 14 \, c d + 9 \, d^{2}\right )} \cos \left (f x + e\right ) +{\left ({\left (c^{2} - 14 \, c d + 17 \, d^{2}\right )} \cos \left (f x + e\right )^{2} - 4 \, c^{2} - 8 \, c d - 4 \, d^{2} + 2 \,{\left (7 \, c^{2} - 18 \, c d + 7 \, d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} +{\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) - 4\right )} \sin \left (f x + e\right ) - 2 \, \cos \left (f x + e\right ) - 4}\right )}{4 \, \sqrt{a c - a d} f}, \frac{\sqrt{2} \sqrt{-\frac{1}{a c - a d}} \arctan \left (-\frac{\sqrt{2} \sqrt{a \sin \left (f x + e\right ) + a}{\left ({\left (c - 3 \, d\right )} \sin \left (f x + e\right ) - 3 \, c + d\right )} \sqrt{d \sin \left (f x + e\right ) + c} \sqrt{-\frac{1}{a c - a d}}}{4 \,{\left (d \cos \left (f x + e\right ) \sin \left (f x + e\right ) + c \cos \left (f x + e\right )\right )}}\right )}{2 \, f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{a \left (\sin{\left (e + f x \right )} + 1\right )} \sqrt{c + d \sin{\left (e + f x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{a \sin \left (f x + e\right ) + a} \sqrt{d \sin \left (f x + e\right ) + c}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]